80202: Function test xfi:u-equal
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 19-02-2008 at 00:00:00 |
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670704
Test Case Variations
V-01
Returns u-equality of numeric items equal
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:u-equal( //concept:a[./text() eq '1001'], //concept:a[./text() eq '2001'] )
(against file V01)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-02
Same as V-01 but numeric items not u-equal
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:u-equal( //concept:a[./text() eq '1001'], //concept:a[./text() eq '3001'] )
(against file V02)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq false()
V-03
Same as V-01 but arguments are sequences
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:u-equal( ( (//concept:a)[1], (//concept:a)[4]), ( (//concept:a)[2], (//concept:a)[5]) )
(against file V03)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-04
Same as V-01 but arguments are sequences not same length
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:u-equal( ( (//concept:a)[1], (//concept:a)[3]), ( (//concept:a)[2] ) )
(against file V04)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq false()
V-05
Not a node argument to function
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:u-equal( /xbrli:xbrl/concept:a[2], 'just a string' )
(against file V05)
Outputs
- Error code: xqt-err:XPTY0004
V-06
A sequence of concepts as argument
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V06)
-
Function Call:
xfi:u-equal( //xbrli:xbrl/xbrli:context[starts-with(@id,'c-V0')] )
(against file V06)
Outputs
- Error code: xqt-err:XPST0017
V-07
Wrong node to function
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V07)
-
Function Call:
xfi:u-equal( /xbrli:xbrl/concept:a[1], /xbrli:xbrl/xbrli:context[2] )
(against file V07)
Outputs
- Error code: xfie:NodeIsNotXbrlItem
V-08
Returns u-equality of non-numeric items
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V08)
-
Function Call:
xfi:u-equal( //concept:b[./text() eq 'foo'], //concept:b[./text() eq 'bar'] )
(against file V08)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq true()
V-09
Returns u-equality of equal text numeric and non-numeric items
Documentation
Inputs
- schema: unit-test-concepts.xsd
- instance: unit-test-instance.xml (DTS Discovery starting point) (ID=V09)
-
Function Call:
xfi:u-equal( //concept:a[./text() eq '1001'], //concept:b[./text() eq '1001'] )
(against file V09)
Outputs
-
Result test:
$result instance of xs:boolean and count( $result ) eq 1 and $result eq false()
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 19-02-2008 at 00:00:00 |
|